const typeObj = {
  '.001': 'application/x-001',
  '.301': 'application/x-301',
  '.323': 'text/h323',
  '.3gp': 'video/3gpp',
  '.906': 'application/x-906',
  '.907': 'drawing/907',
  '.aab': 'application/x-authoware-bin',
  '.aam': 'application/x-authoware-map',
  '.aas': 'application/x-authoware-seg',
  '.acp': 'audio/x-mei-aac',
  '.acx': 'application/internet-property-stream',
  '.ai': 'application/postscript',
  '.aif': 'audio/aiff',
  '.aifc': 'audio/aiff',
  '.aiff': 'audio/aiff',
  '.a11': 'application/x-a11',
  '.als': 'audio/X-Alpha5',
  '.amc': 'application/x-mpeg',
  '.anv': 'application/x-anv',
  '.apk': 'application/vnd.android.package-archive',
  '.asa': 'text/asa',
  '.asc': 'text/plain',
  '.asd': 'application/astound',
  '.asf': 'video/x-ms-asf',
  '.asn': 'application/astound',
  '.asp': 'text/asp',
  '.asr': 'video/x-ms-asf',
  '.asx': 'video/x-ms-asf',
  '.au': 'audio/basic',
  '.avi': 'video/avi',
  '.awb': 'audio/amr-wb',
  '.awf': 'application/vnd.adobe.workflow',
  '.axs': 'application/olescript',
  '.bas': 'text/plain',
  '.bcpio': 'application/x-bcpio',
  '.biz': 'text/xml',
  '.bld': 'application/bld',
  '.bld2': 'application/bld2',
  '.bmp': 'application/x-bmp',
  '.bot': 'application/x-bot',
  '.bz2': 'application/x-bzip2',
  '.c': 'text/plain',
  '.c4t': 'application/x-c4t',
  '.c90': 'application/x-c90',
  '.cal': 'application/x-cals',
  '.cat': 'application/vnd.ms-pki.seccat',
  '.ccn': 'application/x-cnc',
  '.cco': 'application/x-cocoa',
  '.cdf': 'application/x-netcdf',
  '.cdr': 'application/x-cdr',
  '.cel': 'application/x-cel',
  '.cer': 'application/x-x509-ca-cert',
  '.cg4': 'application/x-g4',
  '.cgi': 'magnus-internal/cgi',
  '.cgm': 'application/x-cgm',
  '.chat': 'application/x-chat',
  '.cit': 'application/x-cit',
  '.class': 'java/*',
  '.clp': 'application/x-msclip',
  '.cml': 'text/xml',
  '.cmp': 'application/x-cmp',
  '.cmx': 'application/x-cmx',
  '.co': 'application/x-cult3d-object',
  '.cod': 'image/cis-cod',
  '.conf': 'text/plain',
  '.cot': 'application/x-cot',
  '.cpio': 'application/x-cpio',
  '.cpp': 'text/plain',
  '.cpt': 'application/mac-compactpro',
  '.crd': 'application/x-mscardfile',
  '.crl': 'application/pkix-crl',
  '.crt': 'application/x-x509-ca-cert',
  '.csh': 'application/x-csh',
  '.csi': 'application/x-csi',
  '.csm': 'chemical/x-csml',
  '.csml': 'chemical/x-csml',
  '.css': 'text/css',
  '.cut': 'application/x-cut',
  '.dbf': 'application/x-dbf',
  '.dbm': 'application/x-dbm',
  '.dbx': 'application/x-dbx',
  '.dcd': 'text/xml',
  '.dcm': 'x-lml/x-evm',
  '.dcr': 'application/x-director',
  '.dcx': 'application/x-dcx',
  '.der': 'application/x-x509-ca-cert',
  '.dgn': 'application/x-dgn',
  '.dhtml': 'text/html',
  '.dib': 'application/x-dib',
  '.dir': 'application/x-director',
  '.dll': 'application/x-msdownload',
  '.doc': 'application/msword',
  '.dot': 'application/msword',
  '.docx': 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
  '.drw': 'application/x-drw',
  '.dtd': 'text/xml',
  '.dvi': 'application/x-dvi',
  '.dwf': 'Model/vnd.dwf;application/x-dwf',
  '.dwg': 'application/x-dwg',
  '.dxb': 'application/x-dxb',
  '.dxf': 'application/x-dxf',
  '.dxr': 'application/x-director',
  '.ebk': 'application/x-expandedbook',
  '.edn': 'application/vnd.adobe.edn',
  '.emb': 'chemical/x-embl-dl-nucleotide',
  '.embl': 'chemical/x-embl-dl-nucleotide',
  '.emf': 'application/x-emf',
  '.eml': 'message/rfc822',
  '.ent': 'text/xml',
  '.epi': 'application/x-epi',
  '.eps': 'application/x-ps;application/postscript',
  '.epub': 'application/epub+zip',
  '.eri': 'image/x-eri',
  '.es': 'audio/echospeech',
  '.esl': 'audio/echospeech',
  '.etc': 'application/x-earthtime',
  '.etd': 'application/x-ebx',
  '.etx': 'text/x-setext',
  '.evm': 'x-lml/x-evm',
  '.evy': 'application/envoy',
  '.exe': 'application/x-msdownload',
  '.fax': 'image/fax',
  '.fdf': 'application/vnd.fdf',
  '.fh4': 'image/x-freehand',
  '.fh5': 'image/x-freehand',
  '.fhc': 'image/x-freehand',
  '.fif': 'application/fractals',
  '.flr': 'x-world/x-vrml',
  '.flv': 'flv-application/octet-stream',
  '.fm': 'application/x-maker',
  '.fo': 'text/xml',
  '.fpx': 'image/x-fpx',
  '.frm': 'application/x-frm',
  '.fvi': 'video/isivideo',
  '.g4': 'application/x-g4',
  '.gau': 'chemical/x-gaussian-input',
  '.gbr': 'application/x-gbr',
  '.gca': 'application/x-gca-compressed',
  '.gdb': 'x-lml/x-gdb',
  '.gif': 'image/gif',
  '.gl2': 'application/x-gl2',
  '.gp4': 'application/x-gp4',
  '.gps': 'application/x-gps',
  '.gtar': 'application/x-gtar',
  '.gz': 'application/x-gzip',
  '.h': 'text/plain',
  '.hdf': 'application/x-hdf',
  '.hdm': 'text/x-hdml',
  '.hdml': 'text/x-hdml',
  '.hgl': 'application/x-hgl',
  '.hlp': 'application/winhlp',
  '.hmr': 'application/x-hmr',
  '.hpg': 'application/x-hpgl',
  '.hpl': 'application/x-hpl',
  '.hqx': 'application/mac-binhex40',
  '.hrf': 'application/x-hrf',
  '.hta': 'application/hta',
  '.htc': 'text/x-component',
  '.htm': 'text/html',
  '.html': 'text/html',
  '.hts': 'text/html',
  '.htt': 'text/webviewhtml',
  '.htx': 'text/html',
  '.icb': 'application/x-icb',
  '.ice': 'x-conference/x-cooltalk',
  '.ico': 'image/x-icon;application/x-ico',
  '.ief': 'image/ief',
  '.iff': 'application/x-iff',
  '.ifm': 'image/gif',
  '.ifs': 'image/ifs',
  '.ig4': 'application/x-g4',
  '.igs': 'application/x-igs',
  '.iii': 'application/x-iphone',
  '.img': 'application/x-img',
  '.imy': 'audio/melody',
  '.ins': 'application/x-internet-signup',
  '.ipa': 'application/vnd.iphone',
  '.ips': 'application/x-ipscript',
  '.ipx': 'application/x-ipix',
  '.isp': 'application/x-internet-signup',
  '.it': 'audio/x-mod',
  '.itz': 'audio/x-mod',
  '.IVF': 'video/x-ivf',
  '.ivr': 'i-world/i-vrml',
  '.j2k': 'image/j2k',
  '.jad': 'text/vnd.sun.j2me.app-descriptor',
  '.jam': 'application/x-jam',
  '.jar': 'application/java-archive',
  '.java': 'java/*',
  '.jfif': 'image/jpeg',
  '.jnlp': 'application/x-java-jnlp-file',
  '.jpe': 'image/jpeg;application/x-jpe',
  '.jpeg': 'image/jpeg',
  '.jpg': 'image/jpeg;application/x-jpg',
  '.jpz': 'image/jpeg',
  '.js': 'application/x-javascript',
  '.jsp': 'text/html',
  '.json': 'application/json',
  '.jwc': 'application/jwc',
  '.kjx': 'application/x-kjx',
  '.la1': 'audio/x-liquid-file',
  '.lak': 'x-lml/x-lak',
  '.lar': 'application/x-laplayer-reg',
  '.latex': 'application/x-latex',
  '.lavs': 'audio/x-liquid-secure',
  '.lbm': 'application/x-lbm',
  '.lcc': 'application/fastman',
  '.lcl': 'application/x-digitalloca',
  '.lcr': 'application/x-digitalloca',
  '.lgh': 'application/lgh',
  '.lml': 'x-lml/x-lml',
  '.lmlpack': 'x-lml/x-lmlpack',
  '.lmsff': 'audio/x-la-lms',
  '.log': 'text/plain',
  '.ls': 'application/x-javascript',
  '.lsf': 'video/x-la-asf',
  '.lsx': 'video/x-la-asf',
  '.ltr': 'application/x-ltr',
  '.m13': 'application/x-msmediaview',
  '.m14': 'application/x-msmediaview',
  '.m15': 'audio/x-mod',
  '.m1v': 'video/x-mpeg',
  '.m2v': 'video/x-mpeg',
  '.m3u': 'audio/mpegurl',
  '.m3url': 'audio/x-mpegurl',
  '.m4a': 'audio/mp4a-latm',
  '.m4b': 'audio/mp4a-latm',
  '.m4e': 'video/mpeg4',
  '.m4p': 'audio/mp4a-latm',
  '.m4u': 'video/vnd.mpegurl',
  '.m4v': 'video/x-m4v',
  '.ma1': 'audio/ma1',
  '.ma2': 'audio/ma2',
  '.ma3': 'audio/ma3',
  '.ma5': 'audio/ma5',
  '.mac': 'application/x-mac',
  '.man': 'application/x-troff-man',
  '.map': 'magnus-internal/imagemap',
  '.math': 'text/xml',
  '.mbd': 'application/mbedlet',
  '.mct': 'application/x-mascot',
  '.mdb': 'application/msaccess;application/x-mdb',
  '.mdz': 'audio/x-mod',
  '.me': 'application/x-troff-me',
  '.mel': 'text/x-vmel',
  '.mfp': 'application/x-shockwave-flash',
  '.mht': 'message/rfc822',
  '.mhtml': 'message/rfc822',
  '.mi': 'application/x-mi',
  '.mid': 'audio/mid',
  '.midi': 'audio/mid',
  '.mif': 'application/x-mif',
  '.mil': 'application/x-mil',
  '.mio': 'audio/x-mio',
  '.mmf': 'application/x-skt-lbs',
  '.mng': 'video/x-mng',
  '.mml': 'text/xml',
  '.mnd': 'audio/x-musicnet-download',
  '.mns': 'audio/x-musicnet-stream',
  '.mny': 'application/x-msmoney',
  '.moc': 'application/x-mocha',
  '.mocha': 'application/x-javascript',
  '.mod': 'audio/x-mod',
  '.mof': 'application/x-yumekara',
  '.mol': 'chemical/x-mdl-molfile',
  '.mop': 'chemical/x-mopac-input',
  '.mov': 'video/quicktime',
  '.movie': 'video/x-sgi-movie',
  '.mp1': 'audio/mp1',
  '.mp2': 'audio/mp2',
  '.mp2v': 'video/mpeg',
  '.mp3': 'audio/mp3',
  '.mp4': 'video/mpeg4',
  '.mpa': 'video/x-mpg',
  '.mpc': 'application/vnd.mpohun.certificate',
  '.mpd': 'application/vnd.ms-project',
  '.mpe': 'video/x-mpeg',
  '.mpeg': 'video/mpg',
  '.mpg': 'video/mpg',
  '.mpg4': 'video/mp4',
  '.mpga': 'audio/rn-mpeg',
  '.mpn': 'application/vnd.mophun.application',
  '.mpp': 'application/vnd.ms-project',
  '.mps': 'video/x-mpeg',
  '.mpt': 'application/vnd.ms-project',
  '.mpv': 'video/mpg',
  '.mpv2': 'video/mpeg',
  '.mpw': 'application/vnd.ms-project',
  '.mpx': 'application/vnd.ms-project',
  '.mrl': 'text/x-mrml',
  '.mrm': 'application/x-mrm',
  '.ms': 'application/x-troff-ms',
  '.msg': 'application/vnd.ms-outlook',
  '.mts': 'application/metastream',
  '.mtx': 'text/xml',
  '.mtz': 'application/metastream',
  '.mvb': 'application/x-msmediaview',
  '.mxp': 'application/x-mmxp',
  '.mzv': 'application/metastream',
  '.net': 'image/pnetvue',
  '.nrf': 'application/x-nrf',
  '.nws': 'message/rfc822',
  '.nar': 'application/zip',
  '.nbmp': 'image/nbmp',
  '.nc': 'application/x-netcdf',
  '.ndb': 'x-lml/x-ndb',
  '.ndwn': 'application/ndwn',
  '.nif': 'application/x-nif',
  '.nmz': 'application/x-scream',
  '.nokia-op-logo': 'image/vnd.nok-oplogo-color',
  '.npx': 'application/x-netfpx',
  '.nsnd': 'audio/nsnd',
  '.nva': 'application/x-neva1',
  '.odc': 'text/x-ms-odc',
  '.out': 'application/x-out',
  '.oda': 'application/oda',
  '.ogg': 'audio/ogg',
  '.oom': 'application/x-AtlasMate-Plugin',
  '.p10': 'application/pkcs10',
  '.p12': 'application/x-pkcs12',
  '.p7b': 'application/x-pkcs7-certificates',
  '.p7c': 'application/pkcs7-mime',
  '.p7m': 'application/pkcs7-mime',
  '.p7r': 'application/x-pkcs7-certreqresp',
  '.p7s': 'application/pkcs7-signature',
  '.pac': 'audio/x-pac',
  '.pae': 'audio/x-epac',
  '.pan': 'application/x-pan',
  '.pbm': 'image/x-portable-bitmap',
  '.pc5': 'application/x-pc5',
  '.pci': 'application/x-pci',
  '.pcl': 'application/x-pcl',
  '.pcx': 'application/x-pcx',
  '.pda': 'image/x-pda',
  '.pdb': 'chemical/x-pdb',
  '.pdf': 'application/pdf',
  '.pdx': 'application/vnd.adobe.pdx',
  '.pfr': 'application/font-tdpfr',
  '.pfx': 'application/x-pkcs12',
  '.pgl': 'application/x-pgl',
  '.pgm': 'image/x-portable-graymap',
  '.pic': 'application/x-pic',
  '.pict': 'image/x-pict',
  '.pko': 'application/vnd.ms-pki.pko',
  '.pl': 'application/x-perl',
  '.plg': 'text/html',
  '.pls': 'audio/scpls',
  '.plt': 'application/x-plt',
  '.pm': 'application/x-perl',
  '.pma': 'application/x-perfmon',
  '.pmc': 'application/x-perfmon',
  '.pmd': 'application/x-pmd',
  '.pml': 'application/x-perfmon',
  '.pmr': 'application/x-perfmon',
  '.pmw': 'application/x-perfmon',
  '.png': 'image/png;application/x-png',
  '.pnm': 'image/x-portable-anymap',
  '.pnz': 'image/png',
  '.pot': 'application/vnd.ms-powerpoint',
  '.ppa': 'application/vnd.ms-powerpoint',
  '.ppm': 'application/x-ppm',
  '.pps': 'application/vnd.ms-powerpoint',
  '.ppt': 'application/vnd.ms-powerpoint;application/x-ppt',
  '.pptx': 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
  '.pqf': 'application/x-cprplayer',
  '.pqi': 'application/cprplayer',
  '.pr': 'application/x-pr',
  '.prc': 'application/x-prc',
  '.prf': 'application/pics-rules',
  '.prn': 'application/x-prn',
  '.prop': 'text/plain',
  '.proxy': 'application/x-ns-proxy-autoconfig',
  '.prt': 'application/x-prt',
  '.ps': 'application/x-ps;application/postscript',
  '.ptlk': 'application/listenup',
  '.ptn': 'application/x-ptn',
  '.pub': 'application/x-mspublisher',
  '.pvx': 'video/x-pv-pvx',
  '.pwz': 'application/vnd.ms-powerpoint',
  '.qcp': 'audio/vnd.qcelp',
  '.qt': 'video/quicktime',
  '.qti': 'image/x-quicktime',
  '.qtif': 'image/x-quicktime',
  '.r3t': 'text/vnd.rn-realtext3d',
  '.ra': 'audio/vnd.rn-realaudio',
  '.ram': 'audio/x-pn-realaudio',
  '.ras': 'application/x-ras',
  '.rat': 'application/rat-file',
  '.rc': 'text/plain',
  '.rdf': 'text/xml',
  '.rec': 'application/vnd.rn-recording',
  '.red': 'application/x-red',
  '.rf': 'image/vnd.rn-realflash',
  '.rgb': 'application/x-rgb',
  '.rjs': 'application/vnd.rn-realsystem-rjs',
  '.rjt': 'application/vnd.rn-realsystem-rjt',
  '.rlc': 'application/x-rlc',
  '.rle': 'application/x-rle',
  '.rlf': 'application/x-richlink',
  '.rm': 'application/vnd.rn-realmedia',
  '.rmf': 'application/vnd.adobe.rmf',
  '.rmi': 'audio/mid',
  '.rmj': 'application/vnd.rn-realsystem-rmj',
  '.rmm': 'audio/x-pn-realaudio',
  '.rmp': 'application/vnd.rn-rn_music_package',
  '.rms': 'application/vnd.rn-realmedia-secure',
  '.rmvb': 'application/vnd.rn-realmedia-vbr',
  '.rmx': 'application/vnd.rn-realsystem-rmx',
  '.rnx': 'application/vnd.rn-realplayer',
  '.roff': 'application/x-troff',
  '.rp': 'image/vnd.rn-realpix',
  '.rpm': 'audio/x-pn-realaudio-plugin',
  '.rsml': 'application/vnd.rn-rsml',
  '.rt': 'text/vnd.rn-realtext',
  '.rte': 'x-lml/x-gps',
  '.rtf': 'application/msword;application/x-rtf',
  '.rtg': 'application/metastream',
  '.rtx': 'text/richtext',
  '.rv': 'video/vnd.rn-realvideo',
  '.rwc': 'application/x-rogerwilco',
  '.s3m': 'audio/x-mod',
  '.s3z': 'audio/x-mod',
  '.sam': 'application/x-sam',
  '.sat': 'application/x-sat',
  '.sca': 'application/x-supercard',
  '.scd': 'application/x-msschedule',
  '.sct': 'text/scriptlet',
  '.sdf': 'application/e-score',
  '.sdp': 'application/sdp',
  '.sdw': 'application/x-sdw',
  '.sea': 'application/x-stuffit',
  '.setpay': 'application/set-payment-initiation',
  '.setreg': 'application/set-registration-initiation',
  '.sgm': 'text/x-sgml',
  '.sgml': 'text/x-sgml',
  '.sh': 'application/x-sh',
  '.shar': 'application/x-shar',
  '.shtml': 'magnus-internal/parsed-html',
  '.shw': 'application/presentations',
  '.si6': 'image/si6',
  '.si7': 'image/vnd.stiwap.sis',
  '.si9': 'image/vnd.lgtwap.sis',
  '.sis': 'application/vnd.symbian.install',
  '.sisx': 'application/vnd.symbian.install',
  '.sit': 'application/x-stuffit',
  '.skd': 'application/x-Koan',
  '.skm': 'application/x-Koan',
  '.skp': 'application/x-Koan',
  '.skt': 'application/x-Koan',
  '.slb': 'application/x-slb',
  '.slc': 'application/x-salsa',
  '.sld': 'application/x-sld',
  '.slk': 'drawing/x-slk',
  '.smd': 'audio/x-smd',
  '.smi': 'application/smil',
  '.smil': 'application/smil',
  '.smk': 'application/x-smk',
  '.smp': 'application/studiom',
  '.smz': 'audio/x-smd',
  '.snd': 'audio/basic',
  '.sol': 'text/plain',
  '.sor': 'text/plain',
  '.spc': 'application/x-pkcs7-certificates',
  '.spl': 'application/futuresplash',
  '.spp': 'text/xml',
  '.spr': 'application/x-sprite',
  '.sprite': 'application/x-sprite',
  '.spt': 'application/x-spt',
  '.src': 'application/x-wais-source',
  '.ssm': 'application/streamingmedia',
  '.sst': 'application/vnd.ms-pki.certstore',
  '.stk': 'application/hyperstudio',
  '.stl': 'application/vnd.ms-pki.stl',
  '.stm': 'text/html',
  '.sty': 'application/x-sty',
  '.sv4cpio': 'application/x-sv4cpio',
  '.sv4crc': 'application/x-sv4crc',
  '.svf': 'image/vnd',
  '.svg': 'image/svg+xml',
  '.svh': 'image/svh',
  '.svr': 'x-world/x-svr',
  '.swf': 'application/x-shockwave-flash',
  '.swfl': 'application/x-shockwave-flash',
  '.t': 'application/x-troff',
  '.talk': 'text/x-speech',
  '.tar': 'application/x-tar',
  '.taz': 'application/x-tar',
  '.tbp': 'application/x-timbuktu',
  '.tbt': 'application/x-timbuktu',
  '.tcl': 'application/x-tcl',
  '.tdf': 'application/x-tdf',
  '.tex': 'application/x-tex',
  '.texi': 'application/x-texinfo',
  '.texinfo': 'application/x-texinfo',
  '.tg4': 'application/x-tg4',
  '.tga': 'application/x-tga',
  '.tgz': 'application/x-compressed',
  '.thm': 'application/vnd.eri.thm',
  '.tif': 'image/tiff;application/x-tif',
  '.tiff': 'image/tiff',
  '.tki': 'application/x-tkined',
  '.tkined': 'application/x-tkined',
  '.tld': 'text/xml',
  '.toc': 'application/toc',
  '.top': 'drawing/x-top',
  '.torrent': 'application/x-bittorrent',
  '.toy': 'image/toy',
  '.tr': 'application/x-troff',
  '.trk': 'x-lml/x-gps',
  '.trm': 'application/x-msterminal',
  '.tsd': 'text/xml',
  '.tsi': 'audio/tsplayer',
  '.tsp': 'application/dsptype',
  '.tsv': 'text/tab-separated-values',
  '.ttz': 'application/t-time',
  '.txt': 'text/plain',
  '.uin': 'application/x-icq',
  '.uls': 'text/iuls',
  '.ult': 'audio/x-mod',
  '.ustar': 'application/x-ustar',
  '.uu': 'application/x-uuencode',
  '.uue': 'application/x-uuencode',
  '.vcd': 'application/x-cdlink',
  '.vcf': 'text/x-vcard',
  '.vda': 'application/x-vda',
  '.vdo': 'video/vdo',
  '.vdx': 'application/vnd.visio',
  '.vib': 'audio/vib',
  '.viv': 'video/vivo',
  '.vivo': 'video/vivo',
  '.vmd': 'application/vocaltec-media-desc',
  '.vmf': 'application/vocaltec-media-file',
  '.vmi': 'application/x-dreamcast-vms-info',
  '.vml': 'text/xml',
  '.vms': 'application/x-dreamcast-vms',
  '.vox': 'audio/voxware',
  '.vpg': 'application/x-vpeg005',
  '.vqe': 'audio/x-twinvq-plugin',
  '.vqf': 'audio/x-twinvq',
  '.vql': 'audio/x-twinvq',
  '.vre': 'x-world/x-vream',
  '.vrml': 'x-world/x-vrml',
  '.vrt': 'x-world/x-vrt',
  '.vrw': 'x-world/x-vream',
  '.vsd': 'application/vnd.visio;application/x-vsd',
  '.vss': 'application/vnd.visio',
  '.vst': 'application/vnd.visio;application/x-vst',
  '.vsw': 'application/vnd.visio',
  '.vsx': 'application/vnd.visio',
  '.vts': 'workbook/formulaone',
  '.vtx': 'application/vnd.visio',
  '.vxml': 'text/xml',
  '.wav': 'audio/wav',
  '.wax': 'audio/x-ms-wax',
  '.wb1': 'application/x-wb1',
  '.wb2': 'application/x-wb2',
  '.wb3': 'application/x-wb3',
  '.wbmp': 'image/vnd.wap.wbmp',
  '.wcm': 'application/vnd.ms-works',
  '.wdb': 'application/vnd.ms-works',
  '.web': 'application/vnd.xara',
  '.wi': 'image/wavelet',
  '.wis': 'application/x-InstallShield',
  '.wiz': 'application/msword',
  '.wk3': 'application/x-wk3',
  '.wk4': 'application/x-wk4',
  '.wkq': 'application/x-wkq',
  '.wks': 'application/x-wks',
  '.wm': 'video/x-ms-wm',
  '.wma': 'audio/x-ms-wma',
  '.wmd': 'application/x-ms-wmd',
  '.wmf': 'application/x-wmf',
  '.wml': 'text/vnd.wap.wml',
  '.wmlc': 'application/vnd.wap.wmlc',
  '.wmls': 'text/vnd.wap.wmlscript',
  '.wmlsc': 'application/vnd.wap.wmlscriptc',
  '.wmlscript': 'text/vnd.wap.wmlscript',
  '.wmv': 'video/x-ms-wmv',
  '.wmx': 'video/x-ms-wmx',
  '.wmz': 'application/x-ms-wmz',
  '.woff': 'application/font-woff',
  '.wp6': 'application/x-wp6',
  '.wpd': 'application/x-wpd',
  '.wpg': 'application/x-wpg',
  '.wpl': 'application/vnd.ms-wpl',
  '.wpng': 'image/x-up-wpng',
  '.wps': 'application/vnd.ms-works',
  '.wpt': 'x-lml/x-gps',
  '.wq1': 'application/x-wq1',
  '.wr1': 'application/x-wr1',
  '.wri': 'application/x-wri',
  '.wrk': 'application/x-wrk',
  '.wrz': 'x-world/x-vrml',
  '.ws': 'application/x-ws',
  '.ws2': 'application/x-ws',
  '.wsc': 'text/scriptlet',
  '.wsdl': 'text/xml',
  '.wv': 'video/wavelet',
  '.wvx': 'video/x-ms-wvx',
  '.wxl': 'application/x-wxl',
  '.x_b': 'application/x-x_b',
  '.x_t': 'application/x-x_t',
  '.x-gzip': 'application/x-gzip',
  '.xaf': 'x-world/x-vrml',
  '.xap': 'application/x-silverlight-app',
  '.xar': 'application/vnd.xara',
  '.xbm': 'image/x-xbitmap',
  '.xdm': 'application/x-xdma',
  '.xdma': 'application/x-xdma',
  '.xdp': 'application/vnd.adobe.xdp',
  '.xdr': 'text/xml',
  '.xdw': 'application/vnd.fujixerox.docuworks',
  '.xfd': 'application/vnd.adobe.xfd',
  '.xfdf': 'application/vnd.adobe.xfdf',
  '.xht': 'application/xhtml+xml',
  '.xhtm': 'application/xhtml+xml',
  '.xhtml': 'text/html',
  '.xla': 'application/vnd.ms-excel',
  '.xlc': 'application/vnd.ms-excel',
  '.xll': 'application/x-excel',
  '.xlm': 'application/vnd.ms-excel',
  '.xls': 'application/vnd.ms-excel;application/x-xls',
  '.xlsx': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
  '.xlt': 'application/vnd.ms-excel',
  '.xlw': 'application/x-xlw',
  '.xm': 'audio/x-mod',
  '.xmz': 'audio/x-mod',
  '.xml': 'text/xml',
  '.xof': 'x-world/x-vrml',
  '.xpi': 'application/x-xpinstall',
  '.xpm': 'image/x-xpixmap',
  '.xpl': 'audio/scpls',
  '.xq': 'text/xml',
  '.xql': 'text/xml',
  '.xquery': 'text/xml',
  '.xsd': 'text/xml',
  '.xsit': 'text/xml',
  '.xsl': 'text/xml',
  '.xslt': 'text/xml',
  '.xul': 'text/xul',
  '.xwd': 'application/x-xwd',
  '.xyz': 'chemical/x-pdb',
  '.yz1': 'application/x-yz1',
  '.z': 'application/x-compress',
  '.zac': 'application/x-zaurus-zac',
  '.zip': 'application/zip'
}
module.exports = (fileName) => {
  let suffix = ''
  fileName.replace(/\.[a-z0-9-]+$/i, (part) => {
    suffix = part
  })
  return typeObj[suffix]
}
